<#if  user?? && user.linkType?? && (user.linkType == "wzgly" || user.linkType == "ssgly") > <!--赛事管理员 和 系统管理员-->
<#include "sshdXqListTemplate.html">
<#else>
	您没有权限查看该功能
</#if>
<#macro xmtopic>
${matchProject.matName!}
</#macro>
<#macro toolbarButton> 
<style>
.xm_button .el-button1{
	background-color: #FDBF19;
	border-color: #FDBF19;
}
.xm_button .el-button2{
	background-color: #FF6F00;
	border-color: #FF6F00;
}
.xm_button .el-button3{
	background-color: #ED413D;
	border-color: #ED413D;
}
.xm_button .el-button4{
	background-color: #A0C612;
	border-color: #A0C612;
}
.xm_button .el-button5{
	background-color: #ED413D;
	border-color: #ED413D;
}
.xm_button .el-button6{
	background-color: #3C91EA;
}
.xm_button img {margin-right: 6px;width: 20px;}
</style>
<button  type="button" class="el-button1" onclick="reflushWindow(true);"><span style="font-size: 16px;"><img class="btn_img" src="static/cms/www/default/img/sshd/shuaxin2.png"/>刷新</span></button>
</#macro>
<#macro toolbarSearch>
<#if !(showUserName??) || showUserName == "">
<script>
	window.location.href = "matchManager.do?sshdSysXmPs&sshdId=${matchProject.id!}";
</script>

</#if>
<style>
.xm_search {
    padding: 20px;
    width: 1200px;
}
.xm_search .el-input__inner {
    background-color: #fff;
    background-image: none;
    border: 1px solid #d7e5ea;
    color: #1f2d3d;
    height: 35px;
    padding-left: 10px;
    width: 105px;
    font-size: 15px;
    border-radius: 5px;
}
.xm_search .txt_span{
    font-size:16px;
}
.xm_search .input_span{
    margin-left: 15px;
    margin-right: 15px;
}
</style>
<form id="searchXmForm">
<span class="txt_span" style="margin-left:30px;color:#7F9CD2;font-weight: 700;">${(showUserName)!}</span>
<span class="input_span">
</span>
<!--<span class="txt_span">项目类型:</span>
<span class="input_span">
	<select  class="el-input__inner" disabled name="xmArtType" style=" width: 130px;">
		<#list matchTypeList as type>
  		<option value ="${type.value!}" <#if xmArtType?? && xmArtType== type.value>selected<#elseif !(xmArtType??) && type.value == "swmscx"> select</#if>>${type.name!}</option>
	</#list>  
	</select>
</span>-->
<span class="txt_span">项目名称:</span>
<span class="input_span">
	<input type="text" placeholder="全部" class="el-input__inner" name="xmName" value="${(xmName)!''}"/>
	<img class="btnsearchIcon" onclick="searchXmByParam('searchXmForm')"src="static/cms/www/default/img/sshd/search.png" style="margin-left: 5px; cursor: pointer;"/>
</span>
</form>
</#macro>
<#macro tableDataList>
  <tbody>
<#if dataList??>
  <#list dataList as data>
    <tr>  
	    <td name="xmId" class="g_checkbox"><input name="csxmId" type="checkbox" value="${data.id!}"></input></td>
	    <td>${data.artName!}</td>
	    <td><@jmax.dc key="MATCH_ART_TYPE" code="${data.artType!}" /></td>
	    <td>${(data.scoreItem.cxx)!0}</td> 
	     <#if data.artType?? && data.artType == "swmscx">
	    	<td>${(data.scoreItem.tdqk)!0}</td>  
	    	<td>${(data.scoreItem.syx)!0}</td>
	    <#elseif data.artType?? && data.artType == "jsyycx">
	    	<td>${(data.scoreItem.jsyy)!0}</td>  
		</#if>
	    <td>${(data.scoreItem.sumScore)!0}</td> 
	    <td>
		<a onclick="editsshdzxqXM('${data.artType!}',${data.id!},'sshdCsXmShow')">[项目详情]</a>
		</td>  
	</tr>  
  </#list>
 </#if>
</tbody>
</#macro>
<#macro contentListShow>
	<#include "sshdXqTable.html">
		<#if xmArtType?? && xmArtType== "swmscx">
			<@createTable styleClass='container1100' tabfields = ['项目名称','项目类型','创新性','团队情况','商业性','总分','操作'] isCheckBox=true checkBoxName='zjxmpfId' func=tableDataList  funcButton=buttonOprator1/>
		<#elseif xmArtType ?? && xmArtType == "jsyycx"> 
			<@createTable styleClass='container1100' tabfields = ['项目名称','项目类型','创新性','技术应用','总分','操作'] isCheckBox=true checkBoxName='zjxmpfId' func=tableDataList  funcButton=buttonOprator1/>
		</#if>
	<#include "pager.html">
</#macro>
<#macro buttonOprator1>
</#macro>
<#macro extendJs>
<script>
function searchXmByParam(formId) {
	var param = "";
	$("#" + formId + " input").each(function(){
		if(this.name == "xmName") {
			param = param + "&" + this.name + "=" + encodeURI(encodeURI(this.value));
		 } else {
		 	param = param + "&" + this.name + "=" + this.value;
		 }
	});	
	//$("#" + formId + " select").each(function(){
	//	 param = param + "&" + this.name + "=" + this.value;
	//});
	var url = "matchManager.do?sshdSysXmPsDetail&sshdId=${matchProject.id!}&accountId=${(accountId)}";
	window.location.href = url  + param;
}
</script>
<#include "sshdXqXmJs.html"> 
<@sshdXqXmJs/>
</#macro>